package com.qyl.honghengshop.service.impl;

import java.util.List;

import com.qyl.honghengshop.dao.PictureDao;
import com.qyl.honghengshop.dao.impl.PictureDaoImpl;
import com.qyl.honghengshop.dto.PictureCarousel;
import com.qyl.honghengshop.service.PictureService;
import com.qyl.honghengshop.utils.PageBean;


public class PictureServiceImpl implements PictureService {

	private PictureDao pictureDao = new PictureDaoImpl();
	
	@Override
	public int getRecordCount(PictureCarousel picture) {
		return pictureDao.getRecordCount(picture);
	}

	@Override
	public void pictureList(PageBean pageBean,PictureCarousel picture) {

		pictureDao.pictureList(pageBean,picture);
		
	}

	@Override
	public int pictureAdd(PictureCarousel picture) {
	
		return pictureDao.pictureAdd(picture);
	}

	@Override
	public int delPic(Integer id) {

		
		return pictureDao.delPic(id);
	}

	@Override
	public PictureCarousel getPicById(Integer id) {

		
		return pictureDao.getPicById(id);
		
	}

	@Override
	public int pictureUpdate(PictureCarousel picture) {

		
		return pictureDao.pictureUpdate(picture);
	}

	@Override
	public List<PictureCarousel> allPictureList() {

		
		return pictureDao.allPictureList();
	}

}
